<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title>Blog</title>
		<link rel="stylesheet" href="/static/css/bootstrap.css" />
		<script type="text/javascript" src="/static/js/jquery.js"></script>
		<script type="text/javascript" src="/static/js/bootstrap.js"></script>
		<style>
			body {
				background-color: #CCC;
			}
			
			#content {
				background-color: white;
			}
			
			.col-md-3 li a:hover {
				color: black;
			}
			
			.col-md-3 li a {
				border: 0px;
				color: white;
				border-radius: 0px;
				margin-right: 0px;
			}
			
			.col-md-3 ul {
				background-color: rgb(27, 27, 27);
			}
		</style>
	</head>

	<body>

		<div class="container">
			<h1>Django+Bootstrap</h1>
			<nav class="navbar navbar-default navbar-inverse">
				<div class="container-fluid">
					<div class="navbar-header">
						<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
					        <span class="sr-only">Toggle navigation</span>
					        <span class="icon-bar"></span>
					        <span class="icon-bar"></span>
					        <span class="icon-bar"></span>
					    </button>
						<a class="navbar-brand" href="#">Django-Web</a>
					</div>

					<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
						<ul class="nav navbar-nav">
							<li>
								<a href="#">Home</a>
							</li>
							<li>
								<a href="#">Blog List</a>
							</li>
							<li>
								<a href="#">About</a>
							</li>
						</ul>
					</div>
				</div>
			</nav>
			<div id='content' class="container-fluid">
				<div class='col-md-9'>

					<h2>{{ current_article.headline }}</h2>
                    {% autoescape off %}
                    {{ current_article.content }}
                    {% endautoescape %}
                    <form class="form-horizontal">
                      {% for i in form %}
                      <div class="form-group">
                        <label for="inputEmail3" class="col-sm-2 control-label">{{i.label}}</label>
                        <div class="col-sm-10">
                          {{i}}
                        </div>
                      </div>
                      {% endfor %}
                      <div class="form-group">
                        <div class="col-sm-offset-2 col-sm-10">
                          <button type="submit" class="btn btn-default">Sign in</button>
                        </div>
                      </div>
                </form>
				</div>
				<div class="col-md-3">
					<h2>Sidebar</h2>
					<ul class="nav nav-tabs nav-stacked">
                        {% for i in articles %}
                        <li>
                            <a href="/articles/?name={{ i.headline }}">{{ i.headline }}</a>
                        </li>
                        {% endfor %}
					</ul>
				</div>
			</div>

		</div>
	</body>

</html>